package com.spring.web;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.opensymphony.xwork2.ActionSupport;

public class UserAction extends ActionSupport {

	private static final long serialVersionUID = 1L;

	@Override
	public String execute() throws Exception {
		System.out.println("action......");
		ApplicationContext context=new ClassPathXmlApplicationContext("bean3.xml");
		UserService userService=(UserService)context.getBean("userService");
		userService.add();
		return NONE;
	}
			
}
